package com.lyj.model;

import java.util.Set;

/**
* 
* @author 李艺江
* @version 创建时间：2019年5月6日 下午10:14:12
*/

public class Option {
	
	private Integer id;
	private Question question;
	private String content;
	private Set<Record> records;
	
	private int recordsCount;
	
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Question getQuestion() {
		return question;
	}

	public void setQuestion(Question question) {
		this.question = question;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Set<Record> getRecords() {
		return records;
	}

	public void setRecords(Set<Record> records) {
		this.records = records;
		this.recordsCount = records.size();
	}

	public Option() {
	}

	public Option(Question question, String content) {
		this.question = question;
		this.content = content;
	}

	public Option(Question question, String content, Set<Record> records) {
		this.question = question;
		this.content = content;
		this.records = records;
	}

	public int getRecordsCount() {
		return recordsCount;
	}
	
	
}
